package com.wn.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(
        value = "cinema-member-service",
        fallback = MemberFeignFallBack.class   //服务降级调用的类
)
public interface MemberFeignClient {

    // 请求的方式、URL、方法参数要与请求的接口一致
    @GetMapping("member/{mid}")
    public String findOne(@PathVariable("mid")String mid);


    @GetMapping("member")
    public String findTimeOut();
}